From 96e21230777e79a2ce1ea18503ed70dfec23a94b Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 26 Jun 2009 05:01:27 +0000 Subject: [PATCH] Delbin: larger packet buffer. Be kinder of empty packets. --- delbin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/delbin.c b/delbin.c index d24601fc4..1ce239a7a 100644 --- a/delbin.c +++ b/delbin.c @@ -676,6 +676,7 @@ get_batch(message_t** array, unsigned* n) break; } // fall through + case 0: case MSG_ACK: case MSG_NACK: case MSG_SATELLITE_INFO: @@ -764,6 +765,7 @@ send_batch(int expect_transfer_complete) message_write(batch_array[i].msg_id, &batch_array[i].msg); } // fall through + case 0: case MSG_NACK: case MSG_SATELLITE_INFO: continue; @@ -2192,7 +2194,7 @@ static pthread_t thread; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t cond = PTHREAD_COND_INITIALIZER; static char* report_buf; -static char* packet_array[8]; +static char* packet_array[32]; static unsigned packet_array_head; static unsigned packet_array_tail; static CFRunLoopRef run_loop; -- 2.30.2